package com.huilian.iotbox.admin.wap.dao;

import com.huilian.iotbox.data.po.Permission;
import com.huilian.iotbox.data.vo.PermissionVo;
import com.huilian.iotbox.data.vo.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LinYinDong
 * @date 2024/10/9 下午5:40
 */
public interface PermissionDao {
    List<PermissionVo> findPermissionListByPlatformType(
            @Param("platformType") Integer platformType,
            @Param("parentId") int parentId,
            @Param("status") Integer status,
            @Param("openSetting") Integer openSetting,
            @Param("userInfo") UserInfo userInfo,
            @Param("type") Integer type);

    List<Permission> permissionCondition(@Param("inPermissionIdList") List<Integer> inPermissionIdList, @Param("permission") Permission permissionCondition);

    List<Permission> findAllPermissionsByParentId(@Param("parentId") Integer parentId);

}
